package com.kim.nidoya.net.entity;

import com.kim.net.NetEntity;
import com.kim.nidoya.net.URLConstant;

public class ModifyPasswordEntity extends NetEntity{
	
	private String LoginName;
	private String oldPassword;
	private String newPassword;
	
	public ModifyPasswordEntity(String _LoginName, String _oldPassword, String _newPassword) {
		this.LoginName = _LoginName;
		this.oldPassword = _oldPassword;
		this.newPassword = _newPassword;
	}
	
	@Override
	protected void init() {
		this.url =URLConstant.URL_MODIFYPASSWORD;
	}

	@Override
	protected void initHttpHeader() {
		
	}

	@Override
	public String getSendData() {
		String sendData = "{" + "\"LoginName\":" + LoginName
				+ ",\"oldPassword\":" + oldPassword + ",\"newPassword\":" + newPassword
				+ "}";
		System.out.println("register sendData :" + sendData);
		return sendData;
	}

}
